package io.qar.skus.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

/**
 * SKU表
 *
 * @author yyyyjinying 1020066395@qq.com
 * @since 3.0 2024-06-10
 */
@Data
@ContentRowHeight(20)
@HeadRowHeight(20)
@ColumnWidth(25)
public class SkusExcel {
    @ExcelProperty(value = "关联的菜品ID", index = 0)
    private Long dishId;
    @ExcelProperty(value = "口味", index = 1)
    private String flavor;
    @ExcelProperty(value = "规格（JSON格式）", index = 2)
    private Object specification;
    @ExcelProperty(value = "库存数量", index = 3)
    private Integer stockQuantity;
    @ExcelProperty(value = "库存预警阈值", index = 4)
    private Integer stockThreshold;
    @ExcelProperty(value = "售价", index = 5)
    private BigDecimal price;
    @ExcelProperty(value = "成本价", index = 6)
    private BigDecimal cost;
    @ExcelProperty(value = "SKU图片URL（如有不同）", index = 7)
    private String imageUrl;
    @ExcelProperty(value = "SKU状态", index = 8)
    private Object status;
    @ExcelProperty(value = "审批状态", index = 9)
    private Object approvalStatus;
    @ExcelProperty(value = "促销活动信息（JSON格式）", index = 10)
    private Object promotionInfo;
    @ExcelProperty(value = "版本号", index = 11)
    private Integer version;
    @ExcelProperty(value = "创建时间", index = 12)
    private Date createdAt;
    @ExcelProperty(value = "更新时间", index = 13)
    private Date updatedAt;
    @ExcelProperty(value = "供应商ID", index = 14)
    private Long supplierId;
}